home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / sviluppo / svilupp2 / hw2sgfx2.lha / How2UseGfxV39 / ReadMe < prev    next >
Text File  |  1996-11-25  |  4KB  |  89 lines

  1. -------------------------------------------------------------------
  2.  
  3.                             How2UseGfxv39
  4.  
  5.     How do I use the OS 3.0 graphics.library in an efficient way
  6.  
  7. -------------------------------------------------------------------
  8.  
  9. New Release 3
  10. Date: 25.11.1996
  11.  
  12. This archive includes some code that shows how you can
  13. use systemfriendly BitBlits. It shows how palette sharing is
  14. handled and how friendbitmaps can be used. 
  15.  
  16. The main goal is to show that it is possible to support both
  17. native ECS/AGA and gfxboards with image blitting stuff and
  18. how you can check out what is the best way to blit images.
  19. The demo opens a window on the public screen (Workbench)
  20. allocates pens for a red, a green and a blue shaded ball.
  21. Also a background pen is allocated and the color is cycled throu
  22. a color table. The balls are moved around the window.
  23. It runs on any displaymode, independend if gfx board or not or
  24. what color depth you use. Colorcycling on 16/24 bit modes is simulated
  25. (though this is not really useable).
  26.  
  27. Within a talk to another programmer I found that there is some
  28. need of information on this topic. So I thought I should release
  29. such an archive. Feel free to do what ever you want with this archive
  30. (except selling it and making money:) - Basically write better programs:)
  31. As this example could also to be used to write board friendly games,
  32. it is dedicated to these people out there who are still thinking
  33. palette sharing etc. is useless...why can't I have white backgrounds
  34. on some text manipulation programs ?
  35.  
  36. Also, this demo shows another thing. Try to run the demo on both, EGS
  37. and CyberGraphics. As EGS has an own memory managment, it allocates
  38. the friend bitmap in that memory the window bitmap (or screen bitmap)
  39. lays at. This means, it does allocate bitmap memory on the boards memory
  40. if available. You can imagine that bit blits in onboard RAM is a _bit_ 
  41. faster then blitting it over the bus all the time. The OS 3 was designed
  42. to support such basic concepts. Unfortuenatly none does really use this 
  43. yet...except EGS. If you run the demo you will see that the balls do
  44. still flicker. Imagine to render the balls into an (invisible) friend
  45. bitmap including erasing the old image and blit the whole buffer to the 
  46. display bitmap. Imagine, the whole memory is located in board memory.
  47. Guess what happens ? Only the onboard blitter is used to make these transfers.
  48. -> Fast flicker free blitting faster than AGA will ever be...
  49.  
  50. Currently, this demo does also show that miniterms aren't implemented
  51. in a correct way on 16/24 bit (cg) modes. Mask blitting doesn't seem to work 
  52. here...
  53.  
  54. New:
  55.  
  56. In my latest archive friend bitmaps did not really work. This has something
  57. to do with the method friends was handled. Now, friend bitmap are supported in a 
  58. CyberGraphics compatible way. This means that you must also define a
  59. BMF_MINPLANES flag if you allocate friend bitmaps - it doesn't matter to 
  60. check for cybergraphics, as this still works on native Amiga modes.
  61.  
  62. To the EGS users 
  63. ----------------
  64. Currently EGS does not support this way to allocate friend bitmaps. 
  65. Please check out my latest EGSPlus Release 5 or later.
  66. Since Release 5, the AllocBitMap/FreeBitMap() Functions have been rewritten
  67. so they support cybergraphics compatible Bitmap allocation.
  68. EGSPlus, Release 5 can be found on aminet/gfx/board/EGSPlus.lha
  69.  
  70.  
  71. If you have any questions, feel free to contact me.
  72. (Flames will be ignored :)
  73.  
  74. PS.: The 2410 does not support onboard friends at the moment...we'll see
  75.      what's possible here...but it would be interessting if this 34010 is
  76.      real that lame and can't move images faster then this 2 MB/sec I 
  77.      reach over Z2 :)
  78.      But first I have to rewrite EGS to support 24 bit intuition...
  79.  
  80. ---
  81. Jürgen Schober
  82. EDV Dienstleistungen
  83. Graz · Austria
  84. call:   (+)43-316-674383
  85. e-mail: point@sbox.tu-graz.ac.at (private)
  86.         jschober@campusart.com   (business)
  87. WWW:    http://www.sbox.tu-graz.ac.at/home/point/Welcome.html
  88.         http://www.pointdesign.campusart.com/
  89.